From a828fa1544b0ae5b3941e5f8181603964bcec530 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 28 Mar 2008 17:58:36 +0000 Subject: [PATCH] hvm: Allow HVM guests to execute GNTTABOP_setup_table. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 1f66fcb105..961bfbf354 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1706,7 +1706,7 @@ enum hvm_intblk hvm_interrupt_blocked(struct vcpu *v, struct hvm_intack intack) static long hvm_grant_table_op( unsigned int cmd, XEN_GUEST_HANDLE(void) uop, unsigned int count) { - if ( cmd != GNTTABOP_query_size ) + if ( (cmd != GNTTABOP_query_size) && (cmd != GNTTABOP_setup_table) ) return -ENOSYS; /* all other commands need auditing */ return do_grant_table_op(cmd, uop, count); } -- 2.30.2